<%-- 
    Document   : adminaddprod
    Created on : Mar 10, 2012, 8:48:31 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FooBar Bookstore</title>
        <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
         <%
        if(session.getAttribute("admin")== null){
            response.sendRedirect("adminlogin1234.jsp");
            }

               else{
        %>
        
    </head>
    <body>
        
        <% out.print("Welcome " +session.getAttribute("admin")+ "");%>
        <h1>Administrator Add Product</h1>
         <a href="adminprofile.jsp"> View Profile </a>
         <a href="adminaddprod.jsp"> Add Product</a>
         <a href="adminaddmanager.jsp"> Add Manager </a>
          <a href="admincustomerlist.jsp"> Customer List </a>
             <a href="adminmanagerlist.jsp"> Manager List </a>
         <a href="AdminLogoutServlet"> Logout </a>s
        
        <form action="AdminAddProductServlet">
                Product Title:
                 <input id="textbox" type="text" name="title" /></br>
                 
                  Product Synopsis:
                 <input id="textbox" type="text" name="synopsis" /></br>
        
                 Product Price:
                 <input id="textbox" type="text" name="price" /></br>
                 
                 Product Type:
                 <input id="textbox" type="text" name="type"  /></br>
                 
                 <input type="hidden" name="mangid" value="1">
                  <input type="hidden" name="adminid" value="<%= session.getAttribute("id")%>"  id="password" class="required"/>
      
                 <input  type="submit" name="add" value="Add Product"/>
        </form>
    </body>
    <%
    }
    %>
</html>
